package com.houweishi.module.stock.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

/**
 * 库存管理对象 biz_stock
 * 
 * @author houweishi
 * @date 2023-02-25
 */
public class BizStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 物品类型（1办公用品 2宣传物料 3机器设备） */
    @Excel(name = "物品类型", readConverterExp = "1=办公用品,2=宣传物料,3=机器设备")
    private String productType;

    /** 物品名称 */
    @Excel(name = "物品名称")
    private String productName;

    /** 物品id */
//    @Excel(name = "物品id")
    private Long productId;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 库存 */
    @Excel(name = "库存")
    private Long quantity;

    /** 仓库id */
//    @Excel(name = "仓库id")
    private Long warehouseId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 可用数量 */
    @Excel(name = "可用数量")
    private Long availableQuantity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setWarehouseName(String warehouseName) 
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName() 
    {
        return warehouseName;
    }
    public void setAvailableQuantity(Long availableQuantity) 
    {
        this.availableQuantity = availableQuantity;
    }

    public Long getAvailableQuantity() 
    {
        return availableQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productType", getProductType())
            .append("productName", getProductName())
            .append("productId", getProductId())
            .append("model", getModel())
            .append("quantity", getQuantity())
            .append("warehouseId", getWarehouseId())
            .append("warehouseName", getWarehouseName())
            .append("availableQuantity", getAvailableQuantity())
            .toString();
    }
}
